package com.huyi.singleton;

/**
 * 线程安全- 静态内部类
 * 
 * 描述：	
 * @author shengli.hu
 * @since 1.8	
 * @version 1.0
 */
public class SingletonDemo2 {

	private static class SingletonHolder {
		private static final SingletonDemo2 INSTANCE = new SingletonDemo2();
	}

	private SingletonDemo2() {
	}

	public static final SingletonDemo2 getInstance() {
		return SingletonHolder.INSTANCE;
	}
}
